﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="reg.aspx.cs" Inherits="WebApplication1.reg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 487px;
            height: 27px;
        }
        .style3
        {
            width: 487px;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Panel ID="Panel1" runat="server" BackColor="#1C1C1C"   ForeColor="#E6E154">
<h1 align="center" style="font-family: 'Times New Roman', Times, serif">Registration</h1>
        <table id="tb1" align="center" 
        style="font-family: 'Times New Roman', Times, serif; font-size: medium; font-weight: normal; font-style: normal; width: auto; height: auto;">
        <tr>
        <td class="style3" height="39">
        <asp:Label ID="Label1" runat="server" Text="Account No :" Font-Names="Times New Roman" Font-Size="Medium"></asp:Label>
        <asp:TextBox ID="txtno" runat="server" Height="25px" style="margin-left: 10px" Width="150px" Font-Names="Times New Roman" Font-Size="Medium" ReadOnly="True"></asp:TextBox>
&nbsp;
        </td>
        </tr>

        <tr>
        <td align="justify" class="style2" valign="middle">
        <asp:Label ID="Label2" runat="server" Text="First Name" Font-Names="Times New Roman" Font-Size="Medium"></asp:Label>
            &nbsp;:<asp:TextBox ID="txtfname" runat="server" Height="25px" 
                style="margin-left: 15px" Width="200px" 
                        Font-Names="Times New Roman" Font-Size="Medium"></asp:TextBox>&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtfname" 
                        Display="Dynamic" ErrorMessage="Specify your Name" Font-Names="Times New Roman" 
                        Font-Size="Medium"></asp:RequiredFieldValidator><br />
        </td>
        </tr>
        
        <tr>
        <td align="justify" class="style3" valign="middle"><asp:Label ID="Label10" 
                        runat="server" Text="Last Name" Font-Names="Times New Roman" Font-Size="Medium"></asp:Label>
            &nbsp;:<asp:TextBox ID="txtlname" runat="server" Height="25px" 
                style="margin-left: 16px" Width="200px" 
                        Font-Names="Times New Roman" Font-Size="Medium"></asp:TextBox><br />
        </td>
        </tr>

        <tr>
        <td height="39" valign="middle" class="style3">
        <asp:Label ID="Label3" runat="server" Text="Address :" Font-Names="Times New Roman" Font-Size="Medium"></asp:Label>
        <asp:TextBox ID="txtaddr" runat="server" Height="25px" style="margin-left: 34px" Width="200px" 
                    Font-Names="Times New Roman" Font-Size="Medium"></asp:TextBox>&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtaddr" 
                    Display="Dynamic" ErrorMessage="This is mandatory"></asp:RequiredFieldValidator>
        <br />
        </td>
        </tr>
                
        <tr>
                <td height="39" valign="middle" class="style3"><asp:Label ID="Label4" 
                        runat="server" Text="Gender" Font-Names="Times New Roman" Font-Size="Medium"></asp:Label>
                    &nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="male" runat="server" Text="Male" 
                        Font-Names="Times New Roman" Font-Size="Medium" />&nbsp;&nbsp;
                    <asp:RadioButton ID="female" runat="server" Text="Female" 
                        Font-Names="Times New Roman" Font-Size="Medium" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                </td>
                </tr>
                <tr>
                <td height="39" valign="middle" class="style3">
            <asp:Label ID="Label7" runat="server" Text="Date of Birth :" Font-Names="Times New Roman" 
                        Font-Size="Medium"></asp:Label>
                    <asp:TextBox ID="TextBox1"
                runat="server" Height="25px" Width="200px" Font-Names="Times New Roman" 
                        Font-Size="Medium" style="margin-left: 7px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox1" 
                        Display="Dynamic" ErrorMessage="This is mandatory"></asp:RequiredFieldValidator>
                    <br />
                </td>
                </tr>
                <tr>
                <td height="39" valign="middle" class="style3">
            <asp:Label ID="Label5" runat="server" Text="Contact No :" Font-Names="Times New Roman" 
                        Font-Size="Medium"></asp:Label>
                    <asp:TextBox ID="txtcno"
                runat="server" Height="25px" Width="200px" Font-Names="Times New Roman" 
                        Font-Size="Medium" style="margin-left: 12px"></asp:TextBox>&nbsp;
                    <asp:RegularExpressionValidator
                        ID="RegularExpressionValidator2" runat="server" 
                        ErrorMessage="contact no should be 12 digits" 
                        ValidationExpression="\d{12}" ControlToValidate="txtcno"></asp:RegularExpressionValidator>
                    <br />
                </td>
                </tr>
                <tr>
                <td height="39" valign="middle" class="style3"><asp:Label ID="Label6" 
                        runat="server" Text="Email-Id : " Font-Names="Times New Roman" 
                        Font-Size="Medium"></asp:Label>
                    <asp:TextBox ID="txtmail"
                runat="server" Height="25px" Width="200px" style="margin-left: 28px" 
                        Font-Names="Times New Roman" Font-Size="Medium"></asp:TextBox>&nbsp;<asp:RegularExpressionValidator 
                        ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtmail" 
                        Display="Dynamic" ErrorMessage="Enter correct Id" ValidationExpression="\S+@\S+\.\S+"></asp:RegularExpressionValidator>
                    <br />
                </td>
                </tr>
                <tr>
                <td class="style3" height="39" valign="middle"><asp:Label ID="Label8" 
                        runat="server" Text="Username :" Font-Names="Times New Roman" 
                        Font-Size="Medium"></asp:Label>
                    <asp:TextBox ID="txtuname"
                runat="server" Height="25px" Width="200px" style="margin-left: 22px" 
                        Font-Names="Times New Roman" Font-Size="Medium"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtuname" 
                        Display="Dynamic" ErrorMessage="Specify a username"></asp:RequiredFieldValidator>
                    <br />
                </td>
                </tr>
                <tr>
                <td height="39" valign="middle" class="style3">
            <asp:Label ID="Label9" runat="server" Text="Password :" Font-Names="Times New Roman" 
                        Font-Size="Medium"></asp:Label>
                    <asp:TextBox ID="txtpass"
                runat="server" Height="25px" Width="200px" style="margin-left: 22px" 
                        Font-Names="Times New Roman" Font-Size="Medium" TextMode="Password"></asp:TextBox>
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        ControlToValidate="txtpass" Display="Dynamic" ErrorMessage="Specify a password"></asp:RequiredFieldValidator>
                    <br />
                </td>
                </tr>
                <tr>
                <td align="justify" class="style3">
                    &nbsp;<asp:Button ID="regbtn" runat="server" Text="Register"
                        Height="30px" Width="100px" onclick="regbtn_Click" Font-Bold="True" 
                        Font-Names="Times New Roman" Font-Size="Medium" />
                    <asp:Button ID="clearbtn" runat="server" Font-Bold="True" 
                        Font-Names="Times New Roman" Font-Size="Medium" Height="30px" 
                        onclick="btnclear_Click" Text="Clear" Width="100px" />
                    <asp:Button ID="cancelbtn" runat="server" Font-Bold="True" 
                        Font-Names="Times New Roman" Font-Size="Medium" Height="30px" 
                        onclick="btncancel_Click" Text="Cancel" Width="100px" 
                        CausesValidation="False" />
                    </td>
                </tr>
</table>
                  <br /><br />  
        </asp:Panel>
</asp:Content>
